﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace BYSJ.BLL
{
    //删除文件
   public class FileDele
    {
        public void deleFile(string pSavedPath1)
        {
            if (File.Exists(pSavedPath1))
            {
                FileInfo fi = new FileInfo(pSavedPath1);
                if (fi.Attributes.ToString().IndexOf("ReadOnly") != -1)
                    fi.Attributes = FileAttributes.Normal;
                File.Delete(pSavedPath1);
            }
        }
    }
}
